package com.xncoding.pos;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        try {
            SpringApplication.run(Application.class, args);
        } catch (Exception e) {
            // 添加详细错误日志输出
            System.err.println("应用启动失败，原因: " + e.getMessage());
            e.printStackTrace();
            System.exit(-1); // 确保异常时进程退出
        }
    }

}
